package com.example.demo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.demo.entity.ExamPaper;
import com.example.demo.entity.ExamQuestions;
import com.example.demo.mapper.ExamQuestionsMapper;
import com.example.demo.service.ExamPaperService;
import com.example.demo.mapper.ExamPaperMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 18364
* @description 针对表【exam_paper】的数据库操作Service实现
* @createDate 2023-09-18 11:26:59
*/
@Service
public class ExamPaperServiceImpl extends ServiceImpl<ExamPaperMapper, ExamPaper>
    implements ExamPaperService{
    @Autowired
    ExamPaperMapper examPaperMapper;
    @Override
    public List<ExamPaper> selectAll() {
        List<ExamPaper> list=examPaperMapper.selectList(null);
        return list;
    }

    @Override
    public void deleteById(Integer id) {
        examPaperMapper.deleteById(id);
    }

    @Override
    public ExamPaper selectById(Integer id) {
        ExamPaper examPaper=examPaperMapper.selectById(id);
        return examPaper;
    }

}




